package com.itheima.pojo;

public class Question {
    //问题主键
    private Integer id;
    //关联的问卷id
    private Integer surveyId;
    //问题类型
    private Integer questionType;
    //问题名字
    private String questionName;
    //问题描述
    private String questionDescription;
    //排序
    private Integer questionSort;
    //必填非必填
    private Integer requiredFlag;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(Integer surveyId) {
        this.surveyId = surveyId;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public String getQuestionName() {
        return questionName;
    }

    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }

    public String getQuestionDescription() {
        return questionDescription;
    }

    public void setQuestionDescription(String questionDescription) {
        this.questionDescription = questionDescription;
    }

    public Integer getQuestionSort() {
        return questionSort;
    }

    public void setQuestionSort(Integer questionSort) {
        this.questionSort = questionSort;
    }

    public Integer getRequiredFlag() {
        return requiredFlag;
    }

    public void setRequiredFlag(Integer requiredFlag) {
        this.requiredFlag = requiredFlag;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", surveyId=" + surveyId +
                ", questionType=" + questionType +
                ", questionName='" + questionName + '\'' +
                ", questionDescription='" + questionDescription + '\'' +
                ", questionSort=" + questionSort +
                ", requiredFlag=" + requiredFlag +
                '}';
    }
}
